
package com.yxw.yx_hotel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.yx_hotel.dto.QueryRoomManageDto;
import com.yxw.yx_hotel.dto.QueryRoomStatisticsDto;
import com.yxw.yx_hotel.entity.YxRoomEntity;
import com.yxw.yx_hotel.entity.YxSysUserEntity;
import com.yxw.yx_hotel.vo.RoomManageVo;
import com.yxw.yx_hotel.vo.RoomStatisticsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  宿舍管理
 * @author liuxin
 * @date 2024.01.16
 */
@Repository
public interface RoomMapper extends BaseMapper<YxRoomEntity> {

    /**
     * 房源统计列表查询
     * @param page
     * @param dto
     * @return
     */
    List<RoomStatisticsVo> pageRoomStatisticsList(Page<RoomStatisticsVo> page, @Param("dto") QueryRoomStatisticsDto dto);

    /**
     * 房态管理-列表查询
     * @param page
     * @param dto
     * @param tenantId
     * @return
     */
    List<RoomManageVo> pageRoomManageList(@Param("page") Page<RoomManageVo> page, @Param("dto") QueryRoomManageDto dto, @Param("tenantId")  Long tenantId);

}
